//接口地址
const debug = false; //是否开启debug
var host, host1;
if (debug) {
	host = "http://landwater11.com:8888/index.php/";
	host1 = "http://landwater11.com:8888/"; //用于分享页面得域名前缀
	// host = "http://xy.xiyuezuqiu.cn/index.php/";
	// host1 = "http://xy.xiyuezuqiu.cn/";  //用于分享页面得域名前缀
} else {
	host = `${location.origin}/index.php/`;
	host1 = `${location.origin}`; //用于分享页面得域名前缀
};

//上传文件接口
const uploadFileUrl = `${host}api/upload/chat`;
//提交身份证信息
const submitInfoUrl = `${host}api/info/submit`;
//获取信息
const getInfoUrl = `${host}api/info/getInfo`;
//获取合同
const getArticleUrl = `${host}api/article/index`;
//登录
const loginUrl = `${host}api/manage/login`;
//注册
const registerUrl = `${host}api/manage/register`;
//待审核列表
const getLectureInfoUrl = `${host}api/lectureinfo/index`;
//取消审核
const examineFailUrl = `${host}api/lectureinfo/examine_fail`;
//审核通过
const examinePassUrl = `${host}api/lectureinfo/examine_pass`;
//修改金额
const changeMoneyUrl = `${host}api/lectureinfo/modify_money`;
//详情
const lectureInfoDetailUrl = `${host}api/lectureinfo/lecture_info_detail`;
//提交讲座
const lectureModifyUrl = `${host}api/lecture/modify`;
//讲座列表
const lectureUrl = `${host}api/lecture/index`;
//讲座详情
const getLectureDetailUrl = `${host}api/lecture/detail`;


module.exports = {
	host,
	host1,
	uploadFileUrl,
	submitInfoUrl,
	getInfoUrl,
	getArticleUrl,
	loginUrl,
	registerUrl,
	getLectureInfoUrl,
	examineFailUrl,
	examinePassUrl,
	changeMoneyUrl,
	lectureInfoDetailUrl,
	lectureModifyUrl,
	lectureUrl,
	getLectureDetailUrl,
};
